﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ProgrammingEducationSystem.Models
{
    public class EndCourse
    {
        [Key]
        public Guid Id { get;set; }

        [ForeignKey(nameof(Course))]
        [Required(ErrorMessage = "结课课程Id不可为空")]
        public Guid CourseId { get;set; }
        public Course Course { get; set; }
        public DateTime EndTime { get; set; } = DateTime.UtcNow;

    }
}
